<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/share/taglib.jsp"%>
<html>
	<head>
		<title>用户信息</title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<link rel="stylesheet"
			href="${pageContext.request.contextPath }/css/vip.css"
			type="text/css">
		<script language="JavaScript">
	//到指定的分页页面
	function topage(page) {
		var form = document.forms[0];
		form.page.value = page;
		form.submit();
	}

	function actionEvent(methodname) {
		var form = document.forms[0];
		if (validateIsSelect(form.all, form.productids)) {
			form.action = '<html:rewrite action="/control/product/manage"/>';
			form.method.value = methodname;
			form.submit();
		} else {
			alert("请选择要操作的记录");
		}
	}

	function allselect(allobj, items) {
		var state = allobj.checked;
		if (items.length) {
			for ( var i = 0; i < items.length; i++) {
				if (!items[i].disabled)
					items[i].checked = state;
			}
		} else {
			if (!items[i].disabled)
				items.checked = state;
		}
	}
	/*
	 * 判断是否选择了记录
	 */
	function validateIsSelect(allobj, items) {
		var state = allobj.checked;
		if (items.length) {
			for ( var i = 0; i < items.length; i++) {
				if (items[i].checked)
					return true;
			}
		} else {
			if (items.checked)
				return true;
		}
		return false;
	}
	//-->
</script>
		<SCRIPT language="javascript"
			src="${pageContext.request.contextPath }/js/FoshanRen.js"></SCRIPT>
	</head>

	<body bgcolor="#FFFFFF" text="#000000" marginwidth="0" marginheight="0">
		<form name="us"
			action="${pageContext.request.contextPath }/control/sellmanage/list.do"
			method="post">
			<input type="hidden" name="page" />
			<table width="98%" border="0" cellspacing="1" cellpadding="2"
				align="center">
				<tr>
					<td width="10%" bgcolor="6f8ac4">
						<div align="center">
							<font color="#FFFFFF">编号</font>
						</div>
					</td>
					<td width="10%" nowrap bgcolor="6f8ac4">
						<div align="center">
							<font color="#FFFFFF">机会来源</font>
						</div>
					</td>
					<td width="10%" bgcolor="6f8ac4">
						<div align="center">
							<font color="#FFFFFF">客户名称</font>
						</div>
					</td>
					<td width="10%" nowrap bgcolor="6f8ac4">
						<div align="center">
							<font color="#FFFFFF">成功机率</font>
						</div>
					</td>
					<td width="10%" bgcolor="6f8ac4">
						<div align="center">
							<font color="#FFFFFF">概要</font>
						</div>
					</td>
					<td width="10%" bgcolor="6f8ac4">
						<div align="center">
							<font color="#FFFFFF">联系人</font>
						</div>
					</td>
					<td width="10%" bgcolor="6f8ac4">
						<div align="center">
							<font color="#FFFFFF">联系人电话</font>
						</div>
					</td>
					<td width="10%" bgcolor="6f8ac4">
						<div align="center">
							<font color="#FFFFFF">机会描述 </font>
						</div>
					</td>
					<td width="10%" bgcolor="6f8ac4">
						<div align="center">
							<font color="#FFFFFF">创建人  </font>
						</div>
					</td>
					<td width="10%" bgcolor="6f8ac4">
						<div align="center">
							<font color="#FFFFFF">创建时间 </font>
						</div>
					</td>
					<td width="10%" bgcolor="6f8ac4">
						<div align="center">
							<font color="#FFFFFF">操作  </font>
						</div>
					</td>
				</tr>
				<!---------------------------LOOP START------------------------------>
<c:forEach items="${pageView.records}" var="entry">
				<tr>
					<td bgcolor="f5f5f5">
						<div align="center">
							${entry.id }
						</div>
					</td>
					<td bgcolor="f5f5f5">
						<div align="center">
							${entry.source }
						</div>
					</td>
					<td bgcolor="f5f5f5">
						<div align="center">
							${entry.custname }
						</div>
					</td>
					<td bgcolor="f5f5f5">
						<div align="center">
							${entry.rate }
						</div>
					</td>
					<td bgcolor="f5f5f5">
						<div align="center">
							${entry.title }
						</div>
					</td>
					<td bgcolor="f5f5f5">
						<div align="center">
							${entry.linkman }
						</div>
					</td>
					<td bgcolor="f5f5f5">
						<div align="center">
							${entry.tel }
						</div>
					</td>
					<td bgcolor="f5f5f5">
						<div align="center">
							${entry.desc }
						</div>
					</td>
					<td bgcolor="f5f5f5">
						<div align="center">
							${entry.buildman }
						</div>
					</td>
					<td bgcolor="f5f5f5">
						<div align="center">
							${entry.date }
						</div>
					</td>
					<td bgcolor="f5f5f5">
						<div align="center">
							修改 删除
						</div>
					</td>
					
				</tr>
</c:forEach>
				<!----------------------LOOP END------------------------------->
			</table>
		</form>
	</body>
</html>